// @ts-ignore
/* eslint-disable */
import { api } from "@/utils/api";

/** 新增环保-监测表数据 POST /environmentalMonitorInfo/add */
export async function environmentalMonitorInfoAdd(
  body: BIZAPI.EnvironmentalMonitorInfoCreateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function environmentalMonitorInfoAdd(
  body: BIZAPI.EnvironmentalMonitorInfoCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function environmentalMonitorInfoAdd(
  body: BIZAPI.EnvironmentalMonitorInfoCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function environmentalMonitorInfoAdd(
  body: BIZAPI.EnvironmentalMonitorInfoCreateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/environmentalMonitorInfo/add`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/environmentalMonitorInfo/add`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 删除环保-监测表数据 POST /environmentalMonitorInfo/delete */
export async function environmentalMonitorInfoDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function environmentalMonitorInfoDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function environmentalMonitorInfoDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function environmentalMonitorInfoDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/environmentalMonitorInfo/delete`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/environmentalMonitorInfo/delete`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取环保-监测表数据 POST /environmentalMonitorInfo/get */
export async function environmentalMonitorInfoGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultEnvironmentalMonitorInfoEntity>;

export async function environmentalMonitorInfoGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultEnvironmentalMonitorInfoEntity>>;

export async function environmentalMonitorInfoGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultEnvironmentalMonitorInfoEntity>;

export async function environmentalMonitorInfoGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultEnvironmentalMonitorInfoEntity>(
      `/app/environmentalMonitorInfo/get`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultEnvironmentalMonitorInfoEntity>(
    `/app/environmentalMonitorInfo/get`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 获取环保-监测表VO数据 POST /environmentalMonitorInfo/getVo */
export async function environmentalMonitorInfoGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultEnvironmentalMonitorInfoResp>;

export async function environmentalMonitorInfoGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultEnvironmentalMonitorInfoResp>>;

export async function environmentalMonitorInfoGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultEnvironmentalMonitorInfoResp>;

export async function environmentalMonitorInfoGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultEnvironmentalMonitorInfoResp>(
      `/app/environmentalMonitorInfo/getVo`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultEnvironmentalMonitorInfoResp>(
    `/app/environmentalMonitorInfo/getVo`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 获取环保-监测表分页数据 POST /environmentalMonitorInfo/page */
export async function environmentalMonitorInfoPage(
  body: BIZAPI.EnvironmentalMonitorInfoQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageEnvironmentalMonitorInfoEntity>;

export async function environmentalMonitorInfoPage(
  body: BIZAPI.EnvironmentalMonitorInfoQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageEnvironmentalMonitorInfoEntity>>;

export async function environmentalMonitorInfoPage(
  body: BIZAPI.EnvironmentalMonitorInfoQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageEnvironmentalMonitorInfoEntity>;

export async function environmentalMonitorInfoPage(
  body: BIZAPI.EnvironmentalMonitorInfoQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageEnvironmentalMonitorInfoEntity>(
      `/app/environmentalMonitorInfo/page`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultIPageEnvironmentalMonitorInfoEntity>(
    `/app/environmentalMonitorInfo/page`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 更新环保-监测表数据 POST /environmentalMonitorInfo/update */
export async function environmentalMonitorInfoUpdate(
  body: BIZAPI.EnvironmentalMonitorInfoUpdateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function environmentalMonitorInfoUpdate(
  body: BIZAPI.EnvironmentalMonitorInfoUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function environmentalMonitorInfoUpdate(
  body: BIZAPI.EnvironmentalMonitorInfoUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function environmentalMonitorInfoUpdate(
  body: BIZAPI.EnvironmentalMonitorInfoUpdateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/environmentalMonitorInfo/update`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/environmentalMonitorInfo/update`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取环保-监测表VO分页数据 POST /environmentalMonitorInfo/voPage */
export async function environmentalMonitorInfoVoPage(
  body: BIZAPI.EnvironmentalMonitorInfoQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageEnvironmentalMonitorInfoResp>;

export async function environmentalMonitorInfoVoPage(
  body: BIZAPI.EnvironmentalMonitorInfoQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageEnvironmentalMonitorInfoResp>>;

export async function environmentalMonitorInfoVoPage(
  body: BIZAPI.EnvironmentalMonitorInfoQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageEnvironmentalMonitorInfoResp>;

export async function environmentalMonitorInfoVoPage(
  body: BIZAPI.EnvironmentalMonitorInfoQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageEnvironmentalMonitorInfoResp>(
      `/app/environmentalMonitorInfo/voPage`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultIPageEnvironmentalMonitorInfoResp>(
    `/app/environmentalMonitorInfo/voPage`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}
